﻿<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>关闭窗口时的提示</title>
    <script type="text/javascript">
        function ConfirmClose(){
            if(confirm("是否退出系统？")){ // 弹出提示对话框
                return true;
            }
            return false;
        }
    </script>
</head>
<body onbeforeunload="javascript:if(ConfirmClose()){return false;}else{return true}">

</body>
</html>